const express = require('express');
const router = express.Router();

router.get('/', (req, res) => {
    const content = [];
    for(let i = 0; i < 100; i++)
        content.push({
            id: `2019${i}`,
            dealerCode: `DASGASDA${i}`,
            dealerName: `经销商${i}`,
            partSaleOrderCode: `VXZVXZBA-${i}`,
            pickingCode: `AVZFAA-${i}`,
            code: '20119',
            length: 130.01,
            width: 21.21,
            height: 45.10,
            volume: 5613.21,
            netWeight: 100.00,
            grossWeight: 323.12,
            status: 1,
            containerNo: '13823',
            submitTime: '2019-10-08T06:16:39.800Z',
            remark: 'remark',
            partCode: 'DGFDHGF31',
            partName: `备件名称${i}`,
            oldPartCode: `TRED${i}`,
            oldPartName: 'oldPartName',
            currency: 1,
            quantity: 12.00,
            price: 10.12,
            totalAmount: 250.00,
        });
    res.json({
        message: '',
        payload: {
            content,
            totalElements: 100,
        }
    });
});

module.exports = router;
